
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ page isELIgnored="false" %>
<%@taglib uri="/struts-tags"  prefix="s"%>
  <head>
  <title>来拍登录</title>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/jquery/jquery-1.7.1.min.js"></script>
<script src="<%=request.getContextPath()%>/jquery/cloud.js" type="text/javascript"></script>

<script language="javascript">
    $(document).ready(function(){
    if (window != top){
     top.location.href = location.href; 
	}
	
    })
     
	$(function(){
    $(".loginbox").css({"position":"absolute","left":($(window).width()-692)/2});
	$(window).resize(function(){  
    $(".loginbox").css({"position":"absolute","left":($(window).width()-692)/2});
    })  
});  


function checkform()
{
	var userName = $("#userName").val();
	userName=userName.replace(/(^\s*)|(\s*$)/g, "");
	if(userName==""){
		document.getElementById('userName').focus();
		$("#show_msg").empty().append("<img src='<%=request.getContextPath()%>/images/cha.gif'>&nbsp;用户名不能为空");
		return false;
	}
	var userPass=$("#userPassword").val();
	 if(userPass=="")
	 {
		 document.getElementById('userPassword').focus();
		  $("#show_msg").empty().append("<img src='<%=request.getContextPath()%>/images/cha.gif'>&nbsp;密码不能为空");
		 return false;
	 }
	 
	 var verifyCode=$("#verifyCode").val();
	 if(verifyCode=="")
	 {
		 document.getElementById('verifyCode').focus();
		  $("#show_msg").empty().append("<img src='<%=request.getContextPath()%>/images/cha.gif'>&nbsp;验证码不能为空");
		 return false;
	 }
}

</script> 
</head>
<body style="background-color:#1c77ac; background-image:url(<%=request.getContextPath()%>/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">
    <div id="mainBody">
      <div id="cloud1" class="cloud"></div>
      <div id="cloud2" class="cloud"></div>
    </div>  

<div class="logintop">    
    <span>欢迎登录来拍后台管理平台</span>    
    <ul>
<%--    <li><a href="#">回首页</a></li>--%>
<%--    <li><a href="#">帮助</a></li>--%>
<%--    <li><a href="#">关于</a></li>--%>
    </ul>    
    </div>
    
    <div class="loginbody">
    
	    <span class="systemlogo"></span> 
	       
	    <div class="loginbox">
	    
		    <ul>
		    <form id="resourceForm" name="resourceForm" method="post" action="<%=request.getContextPath()%>/priveliegeLogin.action" onsubmit="return checkform();">
			    <li><input name="userName" id="userName" type="text" class="loginuser" value="" onclick="JavaScript:this.value=''"/></li>
			    <li><input name="userPassword" id="userPassword" type="password" class="loginpwd" value="" onclick="JavaScript:this.value=''"/></li>
			    <li><input name="verifyCode" id="verifyCode" type="text" class="loginuser" value="" onclick="JavaScript:this.value=''"/><img src="<%=request.getContextPath()%>/privilegeVerifyCode.action" name="d" alt="" width="85" height="20" style="background-color: #CCCCCC" align="absmiddle"></li>
			    <li><input name="" type="submit" class="loginbtn" value="登录"/>
			    <label><input name="" type="checkbox" value="" checked="checked" />记住密码</label>
			    <label><a href="#">忘记密码？</a></label></li>
		    </form>
		    </ul>

	    </div>
        <div class="cel">
        	<div style="color:red;font-size:15px;text-align: center;" id="show_msg">
         	<s:if test="#request.loginerror != null">
         		<img src="<%=request.getContextPath()%>/images/cha.gif">&nbsp;<s:property value="#request.loginerror"/>
         	</s:if>
         	</div>
         </div>
    
    </div>
    
    
    
    <div class="loginbm">版权所有  2015  <a href="http://123.56.102.223/LaiPai/">北京云拍网络科技公司</a> </div>
	
    
</body>

</html>